package com.attilax.lang;

import java.util.Iterator;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.attilax.atian.PinyinX;
import com.focusx.elmt.GvMaterial;

public class Trigger4elemtSingle extends Trigger {

	public static void main(String[] args) {
		// / TriggerChain.addTrigger(HttpServletRequest,new Trigger4elemt());
		// HttpSession ss = null;
		// TriggerChain.addTrigger(ss, "elmt", new Trigger4elemtList());
		String filePath = "c:\\a\\b";
		filePath = filePath.replaceAll("\\\\", "/");
		System.out.println(filePath);
	}

	public void exec(Object object) {
		  GvMaterial gvm= (GvMaterial) object;
		  gvm.setApplicationType(gvm.getMaterialType());
//		for (int i = 0; i < li.size(); i++) {
//			Map m = (Map) li.get(i);
//			String filePath = (String) m.get("filePath");
//			filePath = filePath.replaceAll("\\\\", "/");
//		//	m.put("filePath", filePath);
//			m.put("applicationType", m.get("materialType"));
//		}
	}
}
